<?php

namespace paper\constraint;


use Closure;
use paper\http\Request;
use paper\http\Router;
use paper\http\RoutingRules;

interface RouteParser
{
    public function parse(Request $request, Router $router, RoutingRules $routingRules): Closure|array|bool;
}